package nbcb;

import java.util.*;

public class R {
    public static void main(String[] args) {
        String[] strings;
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            strings = scanner.nextLine().split(" ");
            for (String s : strings){
                System.out.print(Character.toUpperCase(s.charAt(0)) + s.substring(1) + " ");
            }
            System.out.println();
        }
    }
}
